package com.hutao.manage.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置文件读取
 * 
 * @author lyh
 *
 */
@Component
@PropertySource(value = "classpath:application.properties")
public class MyConfig {

	@Value("${spring.jackson.date-format}")
	private String dateFormate;

	// medical-export的访问根目录
	@Value("${config.remote.export.project.url}")
	private String exportProjectUrl;
	
	// 数据回传配置
	@Value("${data.return.config}")
	private Integer dataReturnConfig;

	// 疾病回传路径
	@Value("${data.return.diag.path}")
	private String dataReturnDiagPath;

	@Value("${data.return.nursedays.path}")
	private String dataReturnNursedaysPath;

	// 过敏药物回传路径
	@Value("${data.return.alergydrug.path}")
	private String dataReturnAlergydrugPath;

	// 过敏药物回传路径
	@Value("${data.return.crue.path}")
	private String dataReturnCruePath;

	// 手术回传路径
	@Value("${data.return.operation.path}")
	private String dataReturnOperationPath;

	@Value("${progressNote.dir}")
	private String progressNoteDir;

	@Value("${config.hospital.visit.json.path}")
	private String hospitalVisitJsonPath;

	@Value("${config.hospital.visit.json.version.path}")
	private String hospitalVisitJsonVersionPath;
	
	@Value("${examination.local.dir}")
	private String examinationLocalDir;

	public String getHospitalVisitJsonVersionPath() {
		return hospitalVisitJsonVersionPath;
	}

	public void setHospitalVisitJsonVersionPath(String hospitalVisitJsonVersionPath) {
		this.hospitalVisitJsonVersionPath = hospitalVisitJsonVersionPath;
	}

	public String getDateFormate() {
		return dateFormate;
	}

	public void setDateFormate(String dateFormate) {
		this.dateFormate = dateFormate;
	}

	public String getHospitalVisitJsonPath() {
		return hospitalVisitJsonPath;
	}

	public void setHospitalVisitJsonPath(String hospitalVisitJsonPath) {
		this.hospitalVisitJsonPath = hospitalVisitJsonPath;
	}

	public String getProgressNoteDir() {
		return progressNoteDir;
	}

	public Integer getDataReturnConfig() {
		return dataReturnConfig;
	}

	public void setDataReturnConfig(Integer dataReturnConfig) {
		this.dataReturnConfig = dataReturnConfig;
	}

	public String getDataReturnDiagPath() {
		return dataReturnDiagPath;
	}

	public void setDataReturnDiagPath(String dataReturnDiagPath) {
		this.dataReturnDiagPath = dataReturnDiagPath;
	}

	public String getDataReturnOperationPath() {
		return dataReturnOperationPath;
	}

	public void setDataReturnOperationPath(String dataReturnOperationPath) {
		this.dataReturnOperationPath = dataReturnOperationPath;
	}

	public void setProgressNoteDir(String progressNoteDir) {
		this.progressNoteDir = progressNoteDir;
	}

	public String getDataReturnAlergydrugPath() {
		return dataReturnAlergydrugPath;
	}

	public void setDataReturnAlergydrugPath(String dataReturnAlergydrugPath) {
		this.dataReturnAlergydrugPath = dataReturnAlergydrugPath;
	}

	public String getDataReturnNursedaysPath() {
		return dataReturnNursedaysPath;
	}

	public void setDataReturnNursedaysPath(String dataReturnNursedaysPath) {
		this.dataReturnNursedaysPath = dataReturnNursedaysPath;
	}

	public String getDataReturnCruePath() {
		return dataReturnCruePath;
	}

	public void setDataReturnCruePath(String dataReturnCruePath) {
		this.dataReturnCruePath = dataReturnCruePath;
	}

	public String getExportProjectUrl() {
		return exportProjectUrl;
	}

	public void setExportProjectUrl(String exportProjectUrl) {
		this.exportProjectUrl = exportProjectUrl;
	}

	public String getExaminationLocalDir() {
		return examinationLocalDir;
	}

	public void setExaminationLocalDir(String examinationLocalDir) {
		this.examinationLocalDir = examinationLocalDir;
	}
	
	
	
	

}
